package com.neuresys.database.databaseimpl.jssqlite;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.typedarrays.client.Uint8ArrayNative;
import com.neuresys.database.databaseapi.Connection;
import com.neuresys.database.databaseapi.DatabaseOpenEvent;

public class SQLiteDatabaseOpenEvent implements DatabaseOpenEvent{

	private Uint8ArrayNative d;
	public SQLiteDatabaseOpenEvent(Uint8ArrayNative d)
	{
		GWT.log("SQLiteDatabaseOpenEvent("+d+")");
		this.d=d;
	}
	public SQLiteDatabaseOpenEvent() {
		GWT.log("ici");
	}
	@Override
	public SQLite getSQLite() {
		// TODO Auto-generated method stub
		 SQLiteFactory factory=new SQLiteFactory();
		 
		if (d!=null) return factory.createSQLite(d);
		else return factory.createSQLite();
		 
	}

}
